package com.ruoyi.project.storage.metadata.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 数据定义对象 metadata
 * 
 * @author shixiangwen
 * @date 2020-02-27
 */
public class Metadata extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 应用ID */
    @Excel(name = "应用ID")
    private String appId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 父表 */
    @Excel(name = "父表")
    private String parentMetadata;

    /** 说明 */
    @Excel(name = "说明")
    private String comment;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentMetadata(String parentMetadata) 
    {
        this.parentMetadata = parentMetadata;
    }

    public String getParentMetadata() 
    {
        return parentMetadata;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("name", getName())
            .append("parentMetadata", getParentMetadata())
            .append("comment", getComment())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
